import { defineStore } from 'pinia';
export default defineStore('user',{
    // ref
    state:()=>{
        return {
            name:'Hello'
        }
    },
    // 计算属性
    getters:{
        get(state){
            return state.name;
        }
    },
    //方法
    actions:{

    }
});
/*
* 使用时
* import {router} from "../../piniaStore/router.js";
    const routerPiniaStore  = router();
    console.log(routerPiniaStore.name);
    console.log(routerPiniaStore.get);
*
* */